
import Axios from '../../Js/Ajax'
const Collection = {
  // /collection获取合集列表（探索页）
  getCollectionBuyType (params) {
    console.log('getCollectionBuyType params:', params)
    return Axios.get(`/collection`, {params})
  },
  // 合集（个人合集页面）
  getCollectionInfo (params) {
    console.log('getCollectionInfo params:', params)
    return Axios.get(`/asset`, {params})
  },
  // 合集详情（个人合集页面）
  getCollectionDetail (params) {
    console.log('getCollectionInfo params:', params)
    return Axios.get(`/collection-detail`, {params})
  },
  // 获取作品详情
  getCollectionArtDetail (params) {
    console.log('getCollectionArtDetail params:', params)
    return Axios.get(`/asset-detail`, {params})
  },
  // 用户社交账号列表
  getUserSocial (params) {
    console.log('getUserSocial params:', params)
    return Axios.get('/auth/user-social', {params})
  },
  // 获取个人信息
  getUsersetting () {
    // console.log('getUsersetting params:', params)
    return Axios.get('/auth/user-setting')
  },
  // 创建合集
  createCollection (params) {
    console.log('createCollection params:', params)
    return Axios.post(`/auth/collection`, params)
  },
  // 创建合集
  getCollection (params) {
    console.log('createCollection params:', params)
    return Axios.get(`/auth/collection`, {params})
  },
  // 搜索
  getSearchList (params) {
    console.log('getSearchList params:', params)
    return Axios.get('/asset', {params})
  }
}
export default Collection
